package com.sc.base.user.bean.client;

import com.sc.base.user.bean.dto.user.UserAddReqDto;
import com.sc.base.user.bean.dto.user.UserAddResDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author
 */
@FeignClient(value = "sc-base-user", fallback = UserClientFallBack.class)
public interface UserClient {

    /**
     * 用户新增
     * @param reqDto 请求值
     * @return 不想说
     */
    @PostMapping("/user/add")
    UserAddResDto userAdd(@RequestBody UserAddReqDto reqDto);
}
